/**
 * chenuu.com
 * 
 * @author  zhaoxu.com@gmail.com
 * @created 2012-11-9
 */
package com.chenuu.integration.httpclient.dropbox;

import java.util.Map;

/**
 *
 */
public class ChunkedUploadResponse {

    final private String uploadId;
    final private long offset;

    /**
     * Constructs a ChunkedUploadResponse from the raw json Map returned by the server
     */
    public ChunkedUploadResponse(Map<String, Object> fields) {
        this.uploadId = (String)fields.get("upload_id");
        this.offset = (Long)fields.get("offset");
    }

    public String getUploadId() {
        return uploadId;
    }

    public long getOffset() {
        return offset;
    }

}
